SplayTree + LCP + Manacher