A quick and simple class for a rotating priority queue in Java