code: private void resetMatrixB() {
  		// find the magnitude of the largest diagonal element
  		double maxDiag = 0;
  		for( int i = 0; i < N; i++ ) {
  			double d = Math.abs(B.get(i,i));
  			if( d > maxDiag )
  				maxDiag = d;
  		}
  
  		B.zero();
  		for( int i = 0; i < N; i++ ) {
  			B.set(i,i,maxDiag);
  		}
  	}
docs: This is a total hack.  Set B to a diagonal matrix where each diagonal element
  is the value of the largest absolute value in B.  This will be SPD and hopefully
  not screw up the search.