corrections to dl_list and added matrix library