Implementation of the Eigenface algorithm for face recognition in C++