Accurate Numerical Solution of Charged Particle Motion in a Magnetic Field