A collocation method for global approximation of general second order BVPs