I am not sure about the interiors of the algorithm, but is int the appropriate dtype here? Can't we use `uint32` or even `int8` / `uint8`?