Currently, memoize combinator assumes memory stores a list of samples. It would be nice to support a stacked array of samples.