c++ program for detecting and extracting faces from pictures using openCV