upgr SA_script; corrected S value, train set permutation

upgraded SA_script;
added S-multiplication in sigmoid_gradient();
added permutation of the training set per every epoch