implement binary tree (day 9)
fix typo, add rangeerror