Need to change mask to uint64_t and replace ``` mask = pow(2ll,width) -1; ``` with ``` mask = (2ull << (width-1)) -1; ```