completed the addFront method of linked list