Added tests for new optimization routines.
Added heuristic to choose the number of eval points.

- fixes #290
Added benchmarks for number of eval points
Added check for empty activities matrix