Biological treatment of water, waste water, or sewage