[PATCH] Add the branchedbuilder class