6.2 listing for searching linked list