fixed code to run, but it needs the ArrayList added into the HashMap memo properly.