Some sample data structures and algorithms