algorithm and coding the matrix assignment
quick find and quick union week1