Optimizing Affinity-Based Binary Hashing Using Auxiliary Coordinates