added FFDiag AJD algorithm and a unit test.