Added union_find

added snippet union_find