Initial work on slog2 to linear algorithm.