Optimizing Hydraulic Retention Times in Denitrifying