added check for failed solve in covPCA* (C++ code)