Fixed a bug in the LinkedList implementation. Implemented a remove method.