Low-Dimensional Cohomology Groups of the Lie Algebras W(a, b)