Adding Edge class and bit field approach to comparing Trees