A General Two-Step Approach to Learning-Based Hashing | Synapse