Compact activated sludge plant: hydrodynamics, kinetics and dynamic model