Added insert operation for double linked list and minor modifications in single linked list