Statistics for Hierarchical Link and Code: Efficient Similarity Search for Billion-Scale Image Sets