some progress on bug fixing the array memo
discrete memoization example