add priority queue code

add priority queue code