btree algorithm in golang