build several sizes of models. fix priority queue bugs (and pq has an assert too)