Chemistry and Algebra