pub type CandidatePtr<A> = Rc<RefCell<Candidate<A>>>;
A pointer to a candidate struct with interior mutability.