Node.js nearest neighbor search