matrix math (it finds the determinant) | ScratchStats