Adding Heap based on array