Remove from bst

giving null pointer exception in removing last case
i.e.case 4