Rename variables called pq to heap

The old name was sensible when this module was PriorityQueue but isn't
anymore.