added determinant function
added tests for matrix determinant