Suffix tree first working version