Fix FixedSizePriorityQueue implementation and some changes to
ANMRRCalculator.