Changed API for creating external indexes to take vector of vectors