heap sort changed