Algebraic matrix calculation of vibrational levels of triatomic molecules