MinPQ
I refered this Java sourse 
ftp://ftp.cs.princeton.edu/pub/cs226/bins/MinPQ.java