The Doctor says that a flow chart is required to follow his and River's timelines; when he learns she's married another man, he says "I think I'm going to need a bigger flow chart".
The Doctor says that a flow chart is required to follow his and River's timelines; a pun on river and flow. When he later learns she's married another man, he says "I think I'm going to need a bigger flow chart".