add linked list functions - might remove and move to a new file at a later time