edit distance solver, with dynamic programming methods.
added a generic global alignment function.
added fitting alignment function. edited comments.