KNearestNeighbours: Build index of input paper. Capitalize some properties of entities.