Add inplace_scatter_if algorithm, currently unused