Infinite Dimensional Algebras and a Trigonometric Basis for the Classical Lie Algebras