Hamiltonian operators and algebraic structures related to them