Add 2 useful C++ snippets