Add C solution to the rod cutting problem.