reimplemented nested list transpose (fixed length) in C