ComputeMarginals() function implemented and submitted.  Assignment 1 complete.