updated linked list header and added solution for p1