Solution for many problems from topcoder SRM, TCHS and others.