Methods to perform Common Principal Component Analysis (CPCA)