implement calculation for Levenshtein distance with Wagner-Fischer algorithm. Time: O(m*n) Space: O(m*n)