refactoring: eliminating redundant namespaces

changes in compareTrees -> now it uses the whole transformation instead of only one translation