Add Hamming weigth in C