refactor code for tableOfElement and around
refactor chemicalformula.cpp