complete ex 1 regularized log reg and grad desc