Added distance.c for edit distance algorithms, WIP