Added btree debug function.