added tree edit distance implementation that seems to be ok