IdxSpanned function

Extract the indexes related to the spanned factors in the variance-covariance matrix