Added Overloaded method for put with linked lists