Cellular algebras and Cartan matrices