Updated median neighbors association method