Small collection of simple algorithms written in Swift