Self C++ simple Algorithms code storage place