Unified Binary Generative Adversarial Network for Image Retrieval and Compression