Dynamic Connectivity Algo, implements quick find