Some of the algorithm templates I write.