It solves the sample problem. Very slow, though.