Samples and practice for common data structures and algorithms