QUINE-MCCLUSKEY METHOD for simplifying boolean expressions