working version, Murphy method
supporting calculation for unit test
convert to an abstract class
redesign to be concrete subclass of abstract LogregOpfunc
remove dead code gradient_i method
validate args
rely on superclass for initialization
delete dead code
new: determine CPU times
new batch gradient using nn package
new stochastic gradient using nn package
new compare CPU times for concrete subclasses
new run lua profiler