A Novel Energy-conserving Scheme for Eight-dimensional Hamiltonian Problems