Using #reduce instead of #each_with_object

The method #each_with_object is not implemented in  ruby 1.8.7.
Rolled back to #reduce and removed the cop to checks usage of
 #each_with_object to fix the build on tuby 1.8.7