Strategies of covariance matrix calculation in the PCA method applied for three-dimensional data