changes diis to replace oldest vector instead of the vector with the largest error