An implicit high-order discontinuous Galerkin method for steady and unsteady incompressible flows