added a very basic PCA segmentation method