top and bottom initialized

top = 1;

bottom = n;