fix binary-tree/find-max bug