Implement DeepHash