Aggregating binary local descriptors for image retrieval