moved C++ code for zigzag to this package.