[Suffix tree] Left the core part of functional construction