23.03.2004 adapted regression test of optimal.index not to use the case of combined subscripting like c(-1, NA) which is caught as an error since R 1.9.0
23.03.2004 new function need.index
23.03.2004 new function posi.index
