Similar Items: MedCore: Boundary-Preserving Medical Core Pruning for MedSAM