subtreeBAMM function

Pulls out a subtree from bammdata object