Added SPOJ solutions