A PHP function for solving the Cutting Stock Problem.