basic implementation of the FixedSizePriorityQueue