use ConcurrentBag in two function:CheckIfStayOverTime,CheckIfStayOverTime2 instead of list with Parallel.ForEach to speed up