Update tests. Add more tests in CMinSpareNodeTest class.
Fix discrete mode of CMinSpareNode.
discrete mode of CMaxSPareNode still have problem. (may come from the objective function of btrplace.