Fix bstree node removal:
Fix bstree node removal:

* the childs of the node being removed (cur) were not being
  linked back to new parent (nextgreatest).
* removed unneeded/non reachable while loop.
* if the nextgreatest node had a child it was not updating its
  pointer back to its new parent (nextgreatest's parent)


google/crush-tools,google/crush-tools,lexsf/crush-tools,google/crush-tools,google/crush-tools,google/crush-tools,google/crush-tools,lexsf/crush-tools,google/crush-tools,lexsf/crush-tools,lexsf/crush-tools,lexsf/crush-tools,lexsf/crush-tools,lexsf/crush-tools