Update bfgs.js

Bug solve, dimension of Jacobian matrix