Uses SKL to compute distance between segments