Add prioq replace.
Swapped prioq parameter order.
Priority queue improvements.