Some solutions for codility demos