various Codility problems
Merge https://github.com/redickau/Codility