updated LinkedList to use a index to delete and get.
updated LinkedList with add at index