First working version of the isgd for hinge loss.  I had to change the way we choose loss functions, and that affected the other modes.
Merge branch 'master' of https://github.com/abliu/stat221final