Learning to Hash with Binary Deep Neural Network