Adding explicit return type to nontrivial lambda for ThreeValued matrices