add belief propagation code

first commit for c++ belief propagation code.
included gnuplot code also.
minor updates to report for BP algorithm in chpater 3.