seqDist function

Function for computing distance for sequences