twosum by map method