Adds Priority queue implementation.