add matrix search and sum sub-matrix note