Optimizing binary autoencoders using auxiliary coordinates , with application to learning binary hashing