DES algorithm in C++