Create heapsort using min heap