First version of thesis structure. Little clean-up. Added some theory. Newer version of economical chapter. Added Levenshtein distance function.