(somewhat) reasonably efficient implementations of various algorithms and patterns in c.