Implemented Gradient Descent, many fixes left