my solutions for 2014codejam