Deep global-ranking hashing via average precision approximation for large-scale image retrieval | Synapse