are_equal_treelogs function

Determine if two treelogs are equal.