Add mode to compute oneNN, taking into account the length of the second part of the test sequence.