C++ Tutorial: How to use CRTP to speed up your code