Comparision of continuous and discontinuous Galerkin finite element methods for parabolic partial differential equations with implicit time stepping