forgot that the parent node of the start (root) will not be pointing to the correct node (pivot) afterwards, fixed (i hope!).