minor fixes to the buildTree() and addSequenceToBTree() methods