Classic Computer Science Problems in Swift