pub fn encode_high(
    data: &[Additive],
    k: usize,
    parity: &mut [Additive],
    mem: &mut [Additive],
    n: usize
)