Fixed issue in Memoization put methods that inserted wrong key-value pairs.