- added union and intersect function and tests
- added performance tests