Implementation of Deleting node for various scenarios

Implementation of deleting nodes for various cases and reversing the
linked list. Implemented proper logging.