I am having trouble implementing this algorithm in the way that my instructor wants it. I understand the basic algorithm with a 2D array passed to the function, but this req