finish the simple ex-1.c for pqueue using heap.h