Hydrodynamics for an ideal fluid: Hamiltonian formalism and Liouville-equation