(Internal function) Check the different value of X and Y, internally used for parallelization
Useful links