pub const fn square(a: [u64; 6], p: [u64; 6], inv: u64) -> [u64; 6]