Weighted Quick Find Algorithm with added Complexity