Biopolymers in wastewater treatment