Optimization of Face Recognition Algorithm using Artificial Neural Network