modify longest solution for palindromic substring
modification of resize code for sulotion of longest palindromic substring