rodCuttingWithCost