Segmentation fix and 3D O&C

fixed segmentation.
corrected nedges and tedges
add vtk opening and closing.
cleaned ImageGraphCuts.h