add solution for implementing strStr.An improved brute-force version needed.
reduce memory usage for edit distance solution by using rotating cache vector.