saving the best matrix after dimensionality reduction