Explain the method of constructing karnaugh maps.