node as inner class of bin tree