Svag matchende rim for binary tree