Added timer to termination predicate for learn.
Parameterized generations and population size in learn.