add function to fit R_out and R_side first and then R_long
add function to fit R_o, R_s, and R_os first and then R_long
fixed a typo in the finding minimum procedure