Revert "bug fix in delete function of LL"

This reverts commit d088362108dacd3184fe2686051906dc303430f6.
Fixed delete sortedlist