Implementation of DES in c++