Swift implementations of common data structures