Add HammingWeigth and changes HammingDist