find two nearest points