Track reconstruction using a 3-D map of the target magnetic field