Numerical Solution of Singularly Perturbed Problems via both Galerkin and Subdomain Galerkin methods