Allow user to specify output file for Memoization