Access to wrong indices fixed.
Obtention of reduced data on PCA function.
Commented the counting part of the main algorithm.