added comments to priority-queue.js