Port priorityq/PQHandleElem.js to Go.