Fast Solution for the Nonlinear Schrodinger Equation in Optical Fibers by the Reduced Basis Method