Application of the global SO(4) symmetry in the diagonalization of translationally invariant correlated electron models