[Suffix tree] Completed the imperative longest repeated sub-string algorithm