Add unit tests to try TopologicDistance and trees examples

Added Topological Distance trees with junit tests

Update Tests