my solutions to SPOJ problems