fixes for disconnected packing
fix reduceKey bug in pqueue