Add heapsort, modify heap size method