Base data structures and algorithms.