Create main.cpp

main function that implements the Metropolis Hastings.