added a function to save all coincidence values while calculating them, on order not to overflow the memory for large data sets