add dhash implementation, compile successful, not debugged yet