An AA tree in Swift