Is there an advantage to writing our own priority queue over some library implementation (i found http://closure-library.googlecode.com/svn/docs/class_goog_structs_PriorityQueue.html)?