A Water Resources Management by Parametric Dynamic Programming: an Irrigation Case Study