circular linked list:getfisrt and getlast