HeapSort class