Examples of common data structures and algorithms in Swift