Added rules for optimal number of components in PCA

Change-Id: I30d3cf66bb7c6576897fd1defec75df8eab6fd18
Merge "Added rules for optimal number of components in PCA"