Adaptive RSA implemented

Using lsqcurvefit