Mathematical Modeling of Trihalomethane