function is faster than delegate
Filter by row
Tuple version added - needs test
Unit test for filter_matrix_by_row
filter_matrix_by_row_with_index has unit test
Unit test added