added BinaryNode class