Modeling of Asphaltene and Wax Precipitation