add linked list impl and solve p2-1