add btree sample code