Mathematical Simulation of the Crystal Nucleation and Growth at the Intermediate Stage of a Phase Transition