Redefining priority queue classes.