Difference Methods for Boundary Value Problems with a Singularity of the First Kind