strstr implementation with complexity O(N*M) & revised edition O(N-M+1)