C++ program that implements M+ optimization algorithm for core collection assembly