Improvement to uniform_grid, bm_min, and bm_root.