updated bsearch_last function
TLE
sa_sort -> sort_sa
change palindrome checking method