Enter nodes to priority queue