Added matrix determinant function det()