Useful C++ contructions, usually needed in programming competions such as TopCoder.