created function for optimizing parameters on the FFL using patternsearch. changed distance metric to be the fold change within the peak and outside the peak