Simulation of the fractal growth in the restricted geometry