Update list.h

better working intersect