Port priorityq/PQNode.js to Go.