Fix errors in map and list to pass all TestOblig4 tests.

Simplify SinglyLinkedList.
Fix error in SinglyLinkedList where remove method was completely broken.