weighted path compression was added.