updated to handle patches while unary cost calculation

Still ToDO: handle RGB instead of grayscale.
Could use a single number (R*256*256 + G*256 + B)
Updated to remove faulty header on pages 1+
found a bug in j_tplus = min(max(...))

Might need merge with Jeff’s current code
created a simple test Cplex scipt and commiting unfinished prop-labels