Lectures On The Nearest Neighbor Method