passing all tests by 5 for binary trees