Added working REAR and supporting PriorityQueue class.
Tuned reversal selection