A Mathematical Model of the Hypercycle