Update list2dict.m

fixed issue number #6