C Having Trouble With Connected Component Labeling Algorithm Stack

C Having Trouble With Connected Component Labeling Algorithm Stack