Algorithm: materialize the int heap and priority queue implementation and prepare for heaps and queues of other types.