Union Intersection & Sorting

Code changes for Union Intersection & Sorting. Changed the structure of
methods of Automation class to include another parameter.