- Fixed a bug caused by the relocation of the root node in the tree array
- Added a quick way out for the comparison: if the pointers are equal, the
  objects are equal
- Fixed formatting