Fixed a bug in algs4lib
SeamCarver (out of time)