Heapsort implementation based on the minheap and maxheap classes
heapsort based on the classes of minheap and maxheap; Other bug fixes