C++DES algorithm implementation