MolecularWeight function

Calculate the molecular weight of an organic molecule.