A mathematical model of the flow in the circle of Willis