Added a alternate way for HammingWeight