sorry, git reformatted in away my beutiful ascii art matrices. input in the above is the matrix from which rows are being removed.