First draft of ambqi_builder (new implementation of MBQI based on disjoint sets).