solutions for codility.com programmer exercises