Numerical approach to the Schrodinger equation in momentum space