added beginning construct of the line linked list. Copied initially from the circle linked list