add contains method and add double link list class