suffixtrie test implement