Bag of indexes: a multi-index scheme for efficient approximate nearest neighbor search