Enumerative Geometry, Tau-Functions and Heisenberg–Virasoro Algebra