v.addElement("aaa");
v.addElement("bbb");
v.addElement("ccc");
v.addElement("ddd");
v.addElement("eee");
Chain c = new Chain("aaa");
head = c;
c.next = new Chain("bbb"); c = c.next;
c.next = new Chain("ccc"); c = c.next;
c.next = new Chain("ddd"); c = c.next;
c.next = new Chain("eee");
double t;
t = loopChain();
System.out.println("Looping thourgh the chain took " + t);
t = loopVector();
System.out.println("Looping thourgh the vector took " + t);