enble debugging and parameterize the matrix dimensions