Tree edit distance using the Zhang Shasha algorithm