Structured matrix numerical solution of the nonlinear Schrodinger equation by the inverse scattering transform