cleaned up formatting in matrix.rs in both test and bench