construction of heaps 193391