Rewrite function to use libft list. Memory released if the creation of t_mem fails
merge ???
Modification to libft:correction of lstnew and new functions
Modification to libft:correction of lstnew and new functions