Update ParallelANN.scala

Removed usage of Breeze vectors and optimised computation in the loops