Java implementation for several algorithms.  From http://algs4.cs.princeton.edu/code/