define backward recursive equation of cargo loading problem