added buildHeap

heapNode data structure needs to be modified