WIP:Implementing Weighted Quick Union with Path Compression Algorithm to find componets