Recursive tree comparison algorithm that is hash agnostic to lay the groundwork for Issue #28