Adds alpha expansion excersice.
Removes diagonal edges from energy function.