Changing the priority queue implementation of the engine module of scala-react because the default (a home-brew implementation) is buggy!