rename ArrayRotateTest
implement longest common substring