SPS uses priorityQueues now!  Added a comparator
fixed some stuff