added first variant of list intersection