C++ program that implements M+ algorithm for core collection development