Added method for generating matrix spheres