Solutions to exercises at codility.com