Orthogonal polynomials and numerical methods