Solutions to some http://codility.com problems.