Created Union Find data structure

This data structure will use Weighted Quick Union with path compression