Suffix array is working | minor change in Tools.java