Basic algorithms and data structures