Swift Data Structure and Algorithms