Update Heepsort