Contrastive Quantization with Code Memory for Unsupervised Image Retrieval