course project for graphical model; use conditional random field for face detection