add basic zigzag encoding to varint