added support for single vectors in covPCA