Max Flow

Adds max flow as well as min flow, and changes the name of the
constants slightly.