Added hw01/ dir and functions for sum-product and max-product algorithms.