Precise estimation of high-dimensional distribution and its application to face recognition