adding euclidean distance support, 1-indexing bootstrap iterations