Moving collocation method to solve one dimensional partial differential equations