public void AddValue(double time, double val)
 {
     TimeValueNode toAdd = new TimeValueNode(time, val);
     toAdd.next = head;
     head = toAdd;
 }
 public Variable(string Name, Equation DiffEquation, double startingValue, double time)
 {
     this.Name = Name;
     this.DiffEquation = DiffEquation;
     head = new TimeValueNode(time, startingValue);
 }