Finite difference methods and their convergence for a class of two point boundary value problems with periodic boundary conditions