implemented method to compute the edit distance (mode specific)  between two events. added the similarity threshold variable