Create scheduler_lib.cc

Core function for combinatorial optimization.