Some little C/C++ snippets and some numeric algorithms for my NAC lecture