FUnction to perform union operation of disjoint set union
void Union ( vector < int > & parent , vector < int > & rank , vector < int > & maxValue , int a , int b ) { a = Find ( parent , a ) ; b = Find ( parent , b ) ; if ( a == b ) return ;