Update Matirx Kernel Function.cpp