added TableRowsAverager (with tests)