Added some small functions.
Gaps algorithm partially done.
min-distance (provided move-weight >= insert-weight)