Product quantization for nearest neighbor search