make intersection O(n+m) instead of O(n*log(m))