fix a mistake I made in priorityqueue in the last commit

add isless for Pair