Working gradientDescentSeperated