@Test
	public final void testInsert() {
		List<Integer> list = new ArrayList<Integer>(100);
		List<Integer> orderedList = new ArrayList<Integer>(100);
		for (int i = 0; i < 100; i+=2) {
			list.add(i+1);
			orderedList.add(i+1);
		}
		java.util.Collections.shuffle(list);
		for (Integer i : list) {
			tt.insert(i);
		}
		List<Integer> ttList = tt.inorderElements();
		assertEquals(orderedList, ttList);
		
		TTree<Coordinate2D> t2 = new TTree<Coordinate2D>();
		List<Coordinate2D> l = new ArrayList<Coordinate2D>();
		Coordinate2D d;
		for (int i = 0; i < 1000; i++) {
			System.out.println(i);
			d = new Coordinate2D(0.0 + rand.nextDouble(), 1.0*rand.nextDouble());
			l.add(d);
			t2.insert(d);
		}
		java.util.Collections.sort(l);
		List<Coordinate2D> t2List = t2.inorderElements();
		assertEquals(l, t2List);
	}