Swapped Quick Curve estimate to max over 40 datapoints

This should in theory be much more accurate than erroneously using
512 datapoints.
However, the change has not been tested, and I cannot guarantee
this is faster. But I expect it will be.