ammending a base case for closest pair