Created LinkedList and added test cases