Revise hw5q5

hw5q5 now gives correct result for the correct reason, by adding partial derivatives of u and v for gradient descent.