Added time limit to localsearch.LocalSearch implementations.

Renamed GeneticLS#search(state, bound) to iterate() to better reflect the method hierarchy.
Fixed localsearch.WeightedTreePopulation.

Fixed WeightedTreePopulation#add().
Fixed WeightedTreePopulation#retainBest().
Refactoring of WeightedTreeTest.