Added abstract loss function class. Initial work on stochastic gradient.
Merge