add nearestProducts and nearestProductNeighborhoods functions