solutions for topcoder problems