Add a solution to rod_cutting.c