math.pow removed in cosineSimilarity func.

On a 1000 lines file, with 40% lines as data training, the analysis with NN and cosineSimilarity passes from 37 to 24 minutes