Complete hw04; gbfgs