removed unnecessary pointer casts from mat_make_matrix calls
added matrix inverse, broke up determinant into 2 functions