added s_curve_control.cpp
playing around with chisq.cpp to get s_curve to work
reverted to APS chisq.cpp
starting to factor out the setting of centers into different functions for random and non-random bases in chisquared
use bisection to build scurve boundary
fixed bug