union find fixed, clustering should be working