Implementation of linked list, insert data at head, insert data at middle, insert data at tail, and delete data.