Common algorithms and data structures