The number of recursive calls diminished from num(commits) to num(branches)

Still not good enough. We need something else to handle this.