Update math.h

getting rid of int_pow and replacing it with bitshifts in thread.c