Added gatemat.cpp to the repo
* Shaofei's 2013 version
* Added print_hist() to make ps or gif files of 2D histos