Added basic functions of linked list