Implementation of the Discrete Model to solve the population balance equations