Add new baseQueue and underlying priority queue code and tests.

baseQueue will be embedded in all range queue implementations.
"If... is full, the queued element with the lowest priority may be dropped.