Created a compare() function to compare values in both arrays

**Note for line 30: array_search will return matches as an int –
is_numeric will make ints booleans