Simple nearest-neighbor search in low dimensions.