Eigenface implementation for face recognition