A tight-binding study of logic gate circuits for adding numbers inside a molecule