Static inline list functions

- made list functions static inline
- removed list.c