add the variational_approx_example
add the variational_approx_example cpp file