here is faster version of Union-Find with path compression and weighted ...

...tree correction, changes in test file were just me testing to see if it works