Solution of the gap equation in neutron matter