3-fold Des algorithm C++ implementation