clrs; problem 8.4 - water jugs