Add ref.; intersection, union and subests of arrays in Ruby