Basic data structures and algorithms