Moved resize() implementation out of class definition
Minor formatting fix
Used a typedef to abstract priority_queues of grid cells