Added Union and Intersection Functionality

Without proper UI placement