Use a new algs.jar from http://algs4.cs.princeton.edu/