training on all queries finally yields the same cost solution as before
training on all queries finally yields the same cost solution as before

various bug fixes to make this work

stephentu/monomi-optimizer,tristartom/monomi-optimizer,stephentu/monomi-optimizer,tristartom/monomi-optimizer