A Galerkin method for linear third order two-point boundary value problems