Updates build_sampling_grid