def d(memo, other)
      other.each do |sort|
        unless memo.keys.include?(sort[0])
          memo << sort
        end
      end
    end
def d(memo, other)
      other.each do |sort|
        unless memo.keys.include?(sort[0])
          memo << sort
        end
      end
    end
Add items from other not in memo