Implementing Principal Component Analysis (PCA) in OpenCV