MergeTrees and compareTrees on the sonarOcTree. Kept the changeds from elael to avoid conflicts.