binary heap finished