Face recognition using traditional machine learning algorithms and deep neural networks with application to face verification