Traces contour of 2D black and white image using Moore Neighbor algorithm, implemented in C#