Made fractal calculations abstract to allow for different kinds of fractals or algorithms.