Tekstiviesti: Algorithms and data structures