Suffix tree for MIPT algorithm course.