several changes
a SGD version of LR