A cellular automata model of a biological wastewater treating system