Method for determinant