added pq  selection; fixed sorted pq push 0 bug