Arrays and repeated addition