linked list on leaves + test cases yay