Implementations of interesting algorithms