PCA and LDA implementations for face recognition