A secure comparison technique for tree structured data