Fix sgd. Now compiles.

Needs optimization and data loaders
Merge branch 'master' of github.com:DaMSL/K3-Core