sum all heaps