My solution to SquareRemover Topcoder 2014 TCO Marathon Challenge http://community.topcoder.com/longcontest/?module=ViewProblemStatement&rd=15938&pm=13132