erasure-code: chunk remapping

Interpret the mapping parameter and remap the chunks accordingly. For instance mapping=\_DD means the data chunks are stored in the last two chunks and mapping=DD_ is the default where the data chunks are stored in the first two chunks for K=2, M=1