Ordinal Constrained Binary Code Learning for Nearest Neighbor Search