Fix btree's delete method bugs.