Mutable Doubly Linked List in Scala