finished heap sort