min and max of cell average should include current cell. Add check for du < 0 since if du=0 then we get divide by zero.