add EditDistance class; extends PassJoin