add chem_defs.h
solve linear equations