clustering using single linkage and xpaths
added edit distance routines