added source for determinant computing