Eigenvector decomposition to classify handwritten digits