A cleaned up raw version of [adamhooper/js-priority-queue](https://github.com/adamhooper/js-priority-queue), to be used in web worker environment.