Add logic to handle branches with more than two paths
Add logic to handle branches with more than two paths
Add branch path map test