An Efficient Technique for the Evaluation of the Reduced Matrix in the Context of the CBFM for Layered Media