Two new classes of isochronous Hamiltonian systems