Debugged memory overlap between 2D arrays