contains solutions to some spoj problems