SPOJ Added Maximum Rectagngles from Square