Small pieces of code for programming competitions