Template library

Copy-paste implementations of the algorithms that win contests: C++ and Python, each with a problem to test it on.