thresholding matrix B for the method k parallel to matrix A