Implementation of two different strategies for calculation of search length.

why not ```if (mu < c*s) c = mu/s;```
(i.e. you make c iteratively smaller when you could calculate the value for c)