homework 6 submission

Same thing here,
root = remove(k,root);