Change subtreeBAMM

This version is significantly faster but there is room for improvement