creation of linked list extracted into a lib

Signed-off-by: Thomas Schubert <funthomas424242@gmail.com>