adds a function that takes an integer array where one element occurs an even number of times and all others have odd occurences, and finds the element with even occurrences.