Add possibility to enter a maximum number of components when detecting the optimal number. This way the PCA operation will take less time.