Crazy functional C++ library