add linear_list class

forgot everything about cpp.... template etc...