Add simple PriorityQueue

Based on [@olivierlesnicki's code](https://github.com/olivierlesnicki/quantize/blob/master/quantize.js#L77)
Fix test to match ColorUtils behavior