HW_2, task 1

Fixed heapsort