Adds an indexed priority queue implementation