Provide abstraction to iterate over run-length encoded matrices

Help reduce clutter and potential errors in index calculations.