first commit
changed closestPair function