Added two SPOJ solutions.