added safety in covPCA before sending rounds and bootrounds to C++