TreeSearch fully tested. Bug fix for scheduleAfterTB