Zaslat SMS: Algorithms and data structures