Added functions for finding the main path in a tree and Tree-Array conversion.
Occurences of other molecules in a molecule can now be found.