wrote popcnt function

Mod: added a function to bit.c that counts population of 1 bits in an integer