The Cell method for the solution of a 3D nonlinear magnetostatic