add c version for JGFMonteCarlo benchmark and did some tunning of the Bamboo version