Bihamiltonian Structures and Quadratic Algebras in Hydrodynamics and on Non-Commutative Torus