1234
/** * Based on the paper "A Heuristic for Solving the Generalized Water Jug Problem * Florin Leon, Mihai Zaharia, Dan Galea */