squaring out linked list add functionality