How to Find All Duplicates in an Array in Ruby