Bi-decomposition using Boolean Relations