Added Heap Sort, and fixed updateSize()