added solutions to SPOJ problems