solutions for Codility.com exercises