hash distance