adding algorithm for strStr:checking if a string is the substring of another