A red-black tree implemented in Swift