implemented search functionality in doublylinkedlist