shd function

Compute Structural Hamming Distance (SHD)