# convertBinGrid gives incorrect results

@puneet.bhardwaj Details to follow. ConvertBingrid takes as input essentially a 4x4 matrix with rows (inl,xln,X,Y). It then figures out which of the rows has the (Inl,Xln):(min,min) and we call that point "A"; The (min,max) is the "B" point, where AB is the vector for the increasing crosslines (constant inline); and point "C" is (max,min), where AC is the vector for the increasing inlines (constant crossline); and (max,max) "D" is the redundant point catty corner to "A", as described in the document and spreadsheet linked in the tutorial.

For the example below (to be attached request, the (to be attached) response is not correct compared to the (to be attached) spreadsheet, which has the expected answer).

Observations are that the results depend on the order of the rows on input, which is a bug. Suspected is that potentially not (1x4 inl,xln,X,Y) rows are sorted but somehow only (inl,xln) and the XY are not carried.