First draft of memoization scheme

Store all seams instead of generating on the fly