Heap Sorting from min