Continuum wavefunctions calculations with least-squares schemes in a B-splines basis