added bit_ops.c (useful bitwise functions)