Suffix Tree correctly implemented. In previous version in case of event3, no suffix links were made. It was correct but inefficient.