Add implementation of functions in chained list. still have to debug cl_nfree function and write tests.