update function setbits(what the heck) && faster version of bincount