Serial implementation of edit distance in C.