run PCA to compute bouding box