We implement the extended version of this algorithm but don't take full advantage of it since we are limited to an i32 for our counter values.