Add SumsofSquares, work with SPOJ