solutions to most common data structures