Adding LinkedList, Templates and recursion