how to find the trace of a matrix in JS
how to find the trace of a matrix in JS