def run_algo(op_list):
    """Execute all operations in a given list (multiply all matrices to each other)."""
    ops = op_list[::-1] # reverse the list; after all, it's matrix mult.
    result = ops[0]
    for op in ops[1:]:
        result = result * op
    return result