A New Matrix Reduction Algorithm