Fixed sign errors in NNDescent.
Improved implementation of priority queue.
Define sim(x,x) to be 0 so document is not its own neighbor.