gradientDescent() for one variable implemented; required part of assignment 1 completed