Algebraic approach to molecular spectra: two-dimensional problems