list: add list.c & list.h

rename init.h to list.h
implement list interface