An introduction to Information Retrieval using two most popular algorithms - kNN and KDtree along with their implementation codes.