modified the linked list
fixed a bug by decrementing the size
reverse bits modified