Study of swim-bed technology for COD removal and nitrification for latex wastewater treatment