Computing approximate tree edit distance using relaxation labeling