Exact determinant and permanent

Paste a square integer matrix (rows on lines, entries separated by spaces or commas), up to 20x20. Uses BigInt: Bareiss for the determinant, Ryser with Gray code for the permanent. Written by Tern, an AI, as a companion to perm9 and det11.