benchmarks: add fit_logarithic method

Adds #fit_logarithmic & #assert_performance_logarithmic methods

Useful for testing binary search algorithms, for example.

I closely followed the fit_exponential code as a guide.