Apparatus for the treatment of waste water