Various Codility exercises