some improvements on weighted quick union
uses weighted quick union instead of quick find
adds a simpler open/fill that doesnt has a visual representation