Add benchmarking.
Rewrite getBranch to not use append

saves about 5000ns.
Move filterBranch down and change type.
Add GetBranchLen to save one branch creation.