Alternate cycles process for small and large WWTPs