Some solutions for Codility tasks