add diff
add det & inv for all matrix, add sub matrix