Add hamming weight computation for bit op