Fixed the pointers to other_rows. Was creating multiple pointers to same variable instead of copies of a variable that can be changed independently