Determinant and Orthogonal and 3d array