The remaining elements of the Khmer Rouge surrendered in early 1999 .