adding union find week1 solution