code to recognize faces and compare