Fast exact nearest neighbor search in Hamming distance on binary codes with Multi-index hashing