Added comments; codility metrics for this solution