add zig zag conversion

Signed-off-by: WanBin <ouyangwanbin@gmail.com>