BlockSolver: Optional SegmentationCostFunction, activated by setting repsective parameters