finished to add linked list to the original histogram256 codes