Some nonlinear complementarity systems algorithms and applications to unilateral boundary-value problems