added method twosum