Add examples for intersect1d and union1d of more than two arrays.

The approach was suggested by Jaime Frio in issue #5179.