working on building the heap