kd tree assignment init.