calc deteminant of matrix