remove all bugs from weighted red-black tree