minHeap#remove condition failed for smaller indices.
adding heapsort code
wrote heapsort with the heap data structure