Application of the method of lines to the solution of elliptic partial differential equations