Cutting the rod and get the highest profit