Karnaugh map synthesis of multigate threshold networks