added GlobalAlign c++ class