Implement a small, inplace exclusive scan