Title: Fractal Algorithm and Its Application in Rock Mechanics