Numerical solution for the propagation of an elliptic Gaussian beam in a Kerr medium