Faster Priority Queue

Faster priority queue, but the CaveGenerator class is chaos. I'll try to
refactor it into a couple of different classes that make some sort of
sense.