Optimal Pivot Selection Method Based on the Partition and the Pruning Effect for Metric Space Indexes