Update LinkedList.h

The remove method had a bug where the check to see if you were removing the last item in the list would never work and cause corrupt pointers.

Also the returned object was not your data object but a new instance.