my heap sort worked