Allow setting a maximum number of branches.
Merge pull request #1 from aronbierbaum/switch_max_branches