fixed buildHeap for loop lol