Added intersect and minus functions + tests