Test Heap sort