Major rework of BMC algorithms. Build ok. Not yet tested.