In-place nearest-neighbor search in low dimensions.