MatrixGenerator class formatted so that there aren't StyleCop mistakes