Laboratory work #6. Aho-Korasick algorithm