bugfix: fix bug in ArrayPQ
add heapPQ