update cloest pair problem