test cases for heap sort and heapify