Sub domain dense matrix implementaion