extending libds with list_insert()