Added a math module and a nearest neighbour method in RandomIndexing