Useful C++11 snippets for data analysis and functional programming