Function to check if we have seen a value before and update the seenMap
Map of seen values
key to check
value to check
v1.0.0
Function to check if we have seen a value before and update the seenMap