Fetch refactoring. Static analyze fixes.
SPOJ problem set.