A bounded priority queue, used for Kd-Tree implementation.