Finding duplicate items in an array #ruby