added palindromic substring search