Suffix Array implement, using STL sort. (done by wei-yuan Hsu)