create a algebraic datatype btree