Finalized fractal dimension calculation