Added support for SGD

Lets work together :)
you need the entire case statement, right down to the "break;"