Test the performance with/without memoize of ex4.29