added: the implementation of splitting a linkedlist and its test cases