Move Karnaugh maps to a module