Optimize subsequent operators of concatenated sequence.
Add javadoc and test of the memoize operator.