Add new baseQueue and underlying priority queue code and tests.

baseQueue will be embedded in all range queue implementations.
sorry, comment needs to go to the base queue, priority queue, etc.