adding bitfun.c