better data structure for face detection