A stable stieltjes technique for computing orthogonal polynomials and jacobi matrices associated with a class of singular measures