Introduction to Algorithms by Cormen, Leiserson, Rivest, and Stein, implemented in Swift.