Computes the intersection of arrays using a callback function on the keys for comparison