Deep Class-Wise Hashing: Semantics-Preserving Hashing via Class-wise Loss