Computing the nearest neighbour

In this code snippet, we identify the nearest neighbor of a particular user so as to make the recommendations procedure easy.