Optimal pivots to minimize the index size for metric access methods