Fixed a bug in update(). Override update().
Added arow_regress() decl.
Refactored local variable names
Fixed a bug in arow getNewWeight()