added solution for codility alpha 2010