Add subsample functionality to dim1algebra