Priority queue implementation + tests.
Change swap to nil assignments.