Development of a C++ framework for Computing Matrix Element Method