popcount algorithms in C