Adds generalized erase Nth row function, and sets original erase row function to call generalized one with n = 2 to reduce code duplication