Ported diff() and intersection()